package com.sunshine.ribbon;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import java.util.Scanner;

/**
 * @author WeiHong
 * @date 2018/11/13
 */
@SpringBootApplication
public class ServerApplication {
    public static void main(String[] args) {
        // 设置启动的服务器端口
        Scanner scanner = new Scanner(System.in);
        String port = scanner.nextLine();
        new SpringApplicationBuilder(ServerApplication.class)
                .properties("server.port=" + port)
                .run(args);

    }
}
